Add remaining examples: batch, stamps, CI/CD, verification - #72
Merged
Merged
Conversation
…rification (#23, #26, #27, #28) Complete the examples epic (#18) with the final four examples: - 04-batch-processing: stamp reuse across multiple uploads with --stamp-id - 07-stamp-management: full stamp lifecycle (list, info, check, pool-status) - 08-ci-cd-integration: artifact archival with GitHub Actions/GitLab CI configs - 09-verification: tamper detection, SHA-256 integrity, --verify flag
The CLI outputs 'Stamp ID Received: <hex> (Length: 64)' in verbose mode. extract_stamp_id() was capturing the full string including the suffix, causing stamp reuse and stamp info/check to fail on the gateway. Fix: extract only the first token (hex ID) after the colon. Update test helper to match real CLI output format.
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stamp ID Received: <hex> (Length: 64)— previously captured the suffix, breaking stamp reuse and stamp info/check commandsDetails
04-batch-processing/--stamp-id,--size medium,-v07-stamp-management/stamps list/info/check/pool-statuslifecycle08-ci-cd-integration/--std "CI-ARTIFACT-V1", GitHub Actions + GitLab CI configs09-verification/--verifyflagEach example includes:
README.md,demo.sh,run_demo.py, helper scripts, and sample data files (26 new files total).All 4 demos verified against the dev gateway (
provenance-gateway.dev.datafund.io).Test plan
test_examples.py)04-batch-processing/run_demo.py— 3 files uploaded with stamp reuse, integrity verified07-stamp-management/run_demo.py— upload, stamps list/info/check all succeed08-ci-cd-integration/run_demo.py— 2 artifacts archived and verified09-verification/run_demo.py— integrity + tamper detection + notary check passCloses #23, #26, #27, #28